//
//  AppDelegate.h
//  Kjs-iOS
//
//  Created by cfq on 16/5/31.
//  Copyright © 2016年 jmhz. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "UserInfo.h"
#import <YWFeedbackFMWK/YWFeedbackKit.h>

#define CurentDelegate ((AppDelegate *)[UIApplication sharedApplication].delegate)

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;



/*--- 公用属性 ---*/

@property (nonatomic, strong) UserInfo *account;
- (void)getAccountMessageAt:(UIViewController *)viewcontroller
                        ret:(void(^)(UserInfo *account)) ret;
@property (nonatomic,strong) NSString *IMuserID;
@property (nonatomic,strong) NSString *IMpassword;
@property (nonatomic,strong) NSString *appKey;
@property (nonatomic,assign) BOOL ifReLoad;
@end

